class StartMigration < ActiveRecord::Migration
  def self.up
    create_table "product_categories", :force => true do |t|
      t.string   "name"
      t.integer  "parent_id"
      t.datetime "created_at"
      t.datetime "updated_at"
    end

    create_table "product_comments", :force => true do |t|
      t.text     "body"
      t.integer  "product_id"
      t.datetime "created_at"
      t.datetime "updated_at"
    end

    create_table "products", :force => true do |t|
      t.string   "name"
      t.datetime "created_at"
      t.datetime "updated_at"
      t.text     "description"
      t.float    "price"
      t.integer  "restaurant_id"
      t.integer  "product_category_id"
    end

    create_table "restaurant_product_category_memberships", :force => true do |t|
      t.integer  "restaurant_id"
      t.integer  "product_category_id"
      t.datetime "created_at"
      t.datetime "updated_at"
    end

    create_table "restaurants", :force => true do |t|
      t.string   "name"
      t.text     "description"
      t.datetime "created_at"
      t.datetime "updated_at"
    end

    create_table "users", :force => true do |t|
      t.string   "login"
      t.string   "email"
      t.string   "crypted_password",          :limit => 40
      t.string   "salt",                      :limit => 40
      t.datetime "created_at"
      t.datetime "updated_at"
      t.string   "remember_token"
      t.datetime "remember_token_expires_at"
    end
  end

  def self.down
    
  end
end
